function payOrder(ui, memberAccount, pno) {
    //调接口，跳转支付页面
    ui.executeCommand({
        successCallBack: function (result, totalCount) {
            //跳转支付
            showTips("正在跳转支付...", 2000);
            location.href = result.PaymentUrl;
        },
        errorCallback: function (errorCode, msg) {
            showTips(msg);
        }
    }, 'Member.RequirePayOrder', { MemberAccount: memberAccount, PaymentNo: pno, IsCheckPay: "1" });
}

function checkShipping(com, no) {
    if (com == '' || no == '') {
        alert('我们将尽快发货，请留意物流信息');
        return;
    }
    var url = 'http://m.kuaidi100.com/index_all.html?type=' + com + '&postid=' + no;
    location.href = url;
}
//取消订单
function cancelOrder(ui, memberAccount, no) {
    confirmDialog('请确认要取消此订单！', function () {
        ui.executeCommand({ successCallBack: function () {
            showTips('订单取消成功！', 500, function () { location.replace(location.href); });
        }
        },
        'Member.CancelOrder', { MemberAccount: memberAccount, OrderNo: no });

    });
}

//完成订单
function finishOrder(ui, memberAccount, no) {
    confirmDialog('请确认要签收此订单？', function () {
        ui.executeCommand({ successCallBack: function () {
            location.replace(location.href);
        }
        },
        'Member.FinishOrder', { MemberAccount: memberAccount, OrderNo: no });

    });
}
//完成订单
function finishPackage(ui, memberAccount, no) {
    confirmDialog('请确认要签收此包裹？', function () {
        ui.executeCommand({ successCallBack: function () {
            location.replace(location.href);
        }
        },
        'Member.FinishPackage', { MemberAccount: memberAccount, PackageNo: no });

    });
}
//删除订单
function deleteOrder(ui, memberAccount, no) {
    confirmDialog('请确认要删除此订单！', function () {
        ui.executeCommand({ successCallBack: function () {
            showTips('订单删除成功！', 500, function () {  location.replace(location.href); });
        }
        },
        'Member.DeleteOrder', { MemberAccount: memberAccount, OrderNo: no });

    });
}